<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
                                                                                                            <link href="/css/plugins/bootstrap-datepicker/bootstrap-datepicker.css" rel="stylesheet">
                                                                                <link href="/css/plugins/switchery/switchery.css" rel="stylesheet">
                                                <link href="/css/plugins/bootstrap-fileinput/fileinput.min.css" rel="stylesheet">
                                                                                                                <link href="/css/animate.min.css" rel="stylesheet">
    <link href="/css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>门店服务项目管理</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="fa fa-wrench"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li><a href="#">选项1</a>
                    </li>
                    <li><a href="#">选项2</a>
                    </li>
                </ul>
                <a class="close-link">
                    <i class="fa fa-times"></i>
                </a>
            </div>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <!-- Example Toolbar -->
                    <div class="example-wrap">
                        <div class="example">
                            <div class="btn-group hidden-xs" id="exampleToolbar" role="group">
                                <button data-toggle="modal" class="btn btn-outline btn-default" href="#modal-add-form" >
                                    <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
                                </button>
                                <button type="button" class="btn btn-outline btn-default">
                                    <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    <!-- End Example Toolbar -->
                </div>
                <div class="col-sm-12">
                    <div class="example">
                        <table id="mytable" class="table"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End Panel Basic -->
</div>

<!--添加StoreItem模态框-->
<div id="modal-add-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">门店服务项目添加</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" action="add">
                                                                                                                                                                                                                                                                                <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >门店项目</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="name">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >项目编码</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="code">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">项目时长#分钟为单位30，60等</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control selectData" readonly  name="time">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >项目价格</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" name="price">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-sm-4 control-label">状态</label>
                                                        <div class="col-sm-8">
                                                            <input type="checkbox" class="js-switch" name="state">
                                                        </div>
                                                    </div>
                                                </div>
                                                                                                                                                                                                                                                            <div class="form-group">
                                                    <label class="col-sm-2 control-label">项目图片</label>
                                                    <div class="col-sm-10">
                                                        <input id="mfile" name="mfile" type="file" class="file"/>
                                                    </div>
                                                </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-add-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <input id="hidpic" name="pic" type="hidden" value=""/>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改StoreItem模态框-->
<div id="modal-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">门店服务项目修改</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" action="modify">
                                                                                                                                                                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >门店项目</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="name" name="name">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >项目编码</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="code" name="code">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">项目时长#分钟为单位30，60等</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control selectData" readonly id="time2" name="time">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >项目价格</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control" id="price" name="price">
                                                    </div>
                                                </div>
                                                </div>
                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">状态</label>
                                                    <div class="col-sm-8">
                                                        <input type="checkbox" id="state" name="state">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                            <div class="form-group">
                                                    <label class="col-sm-2 control-label">项目图片</label>
                                                    <div class="col-sm-10">
                                                        <img id="previewPic" src='' class='file-preview-image' alt='' title=''
                                                             style="width: 100px;height: 100px;"/>
                                                        <input id="mfile2" name="mfile" type="file" class="file"/>
                                                    </div>
                                                </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <input id="hidpic2" name="pic" type="hidden" value=""/>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <input id="id" name="id" type="hidden" value="" />
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="/js/jquery.min.js?v=2.1.4"></script>
<script src="/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/js/content.min.js?v=1.0.0"></script>
<script src="/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="/js/bootstrap-table.my.js"></script>
<script src="/js/plugins/layer/layer.min.js"></script>
                                                <script src="/js/plugins/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/plugins/bootstrap-datepicker/bootstrap-datepicker.zh-CN.min.js"></script>
                                                <script src="/js/plugins/switchery/switchery.js"></script>
                        <script src="/js/plugins/bootstrap-fileinput/fileinput.min.js"></script>
<script src="/js/plugins/bootstrap-fileinput/zh.js"></script>
                                        <script src="/js/admin/storeitem.js"></script>
</body>
</html>